<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/10
 * Time: 2:53
 */

namespace app\common\validate;


use think\Validate;

class Systems extends Validate
{

    protected $rule = [
        'name|标题' => "require",
        'desc|简介' => "require",
        'phone|电话号码' => "require",
        'email|邮箱' => "require|email",
        'address|地址' => "require",
        'icpNum|备案' => "require",
        'icpHref|备案链接' => "require",

    ];
    public function sceneAdd(){
        return $this->only(['name','desc','phone','email','address','icpNum','icpHref']);
    }

}